Ext.define('App.report.model.KpiModel', {
    extend: 'Extend.data.BaseModel',
    fields: [{name: 'id'}, {name: 'name'}, {name: 'field'}, {
        name: 'value', convert: function (v, r) {
            if (Ext.isDate(v) && !Ext.isEmpty(v)) {
                var result = Ext.util.Format.date(v, 'Y-m-d');
                return result;
            }
            return v;
        }
    }]
});
